Update shape handling
authorAlexander Larsson <alexl@redhat.com>
Thu, 27 Aug 2009 16:04:07 +0000 (18:04 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 31 Aug 2009 13:06:01 +0000 (15:06 +0200)
commit4d3b19fa7cd4177d66ab6f20b52bf49ead10eb41
treeccd7bb9aa094674f3ea6516892869a63bdab95b4
parentcc5b22cc816b0af0b19e0603c1cfc0043c5d11fe
Update shape handling

For toplevels, never apply clip as shape, instead apply shape.
This way we don't have to re-set it all the time as the window size
changes. Furthermore, this change fixes unsetting a shape on a
toplevel window which didn't actually unset the shape before.

Additionally we never apply clips as shape if the shape would just
be the same as the regular window size. This means we won't unnecessarily
add a useless shape to most native child windows (and additionally this
helps apps that do weird X stuff that don't expect these shaped windows).
gdk/gdkinternals.h
gdk/gdkwindow.c